import request from '@/utils/request'

// 查询被考核人结果列表
export function listPersonanswer(query) {
  return request({
    url: '/kh/personanswer/list',
    method: 'get',
    params: query
  })
}

// 查询被考核人结果详细
export function getPersonanswer(id) {
  return request({
    url: '/kh/personanswer/' + id,
    method: 'get'
  })
}

// 新增被考核人结果
export function addPersonanswer(data) {
  return request({
    url: '/kh/personanswer',
    method: 'post',
    data: data
  })
}

// 修改被考核人结果
export function updatePersonanswer(data) {
  return request({
    url: '/kh/personanswer',
    method: 'put',
    data: data
  })
}

// 删除被考核人结果
export function delPersonanswer(id) {
  return request({
    url: '/kh/personanswer/' + id,
    method: 'delete'
  })
}

// 导出被考核人结果
export function exportPersonanswer(query) {
  return request({
    url: '/kh/personanswer/export',
    method: 'get',
    params: query
  })
}